package easycloud.ecs;

import org.jdesktop.application.Application;

import easycloud.ecs.service.ETagService;
import easycloud.ecs.service.MonitorService;
import easycloud.ecs.ui.MainFrame;

public class App {

	private static final App instance = new App();

	private MainFrame mainFrame;

	private final MonitorService monitorService = MonitorService.getInstance();

	private final ETagService eTagService = ETagService.getInstance();

	public static void main(String[] args) {
		Application.launch(MainFrame.class, args);
	}

	private App() {

	}

	public static App getInstance() {
		return instance;
	}

	public MainFrame getMainFrame() {
		return this.mainFrame;
	}

	public void setMainFrame(MainFrame frame) {
		this.mainFrame = frame;
	}

	public MonitorService getMonitorService() {
		return monitorService;
	}

	public ETagService getETagService() {
		return eTagService;
	}
}
